﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace prjYan.Forum.Controllers
{
    public class PostFrontEndController : Controller
    {
        //
        // GET: /Post/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Detail(int id)
        {
            var model = YanForum.Engine.Services.Post.GetPostDetail(id);
            if (model.Title == null) return Redirect("/");

            return View(model);
        }

    }
}
